﻿<UserControl x:Class="Project.ViewComplaintPart2"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="1310" d:DesignWidth="900" xmlns:my="clr-namespace:CustomControls;assembly=CustomControls" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit">
    <UserControl.Resources>
        <DataTemplate x:Key="EvidenceItemsTemplate">
            <Border Width="720" Height="30" BorderBrush="#69810E" BorderThickness="0,0,0,1">
                <StackPanel Orientation="Horizontal">
                    <TextBlock VerticalAlignment="Center" FontSize="14" FontWeight="Bold" Text="{Binding Number}" Margin="5,0,8,0"/>
                    <TextBlock Width="670" TextWrapping="Wrap" VerticalAlignment="Center" FontWeight="bold" FontSize="12"  Text="{Binding Description}" />
                </StackPanel>
            </Border>
        </DataTemplate>
        <DataTemplate x:Key="FunctionaryItemsTemplate">
            <Border Width="730" Height="30" BorderBrush="#69810E" BorderThickness="0,0,0,1">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Width="305" VerticalAlignment="Center" FontWeight="bold" FontSize="14" Text="{Binding Path=Name,StringFormat='Nombre: {0}'}" Margin="5,0,8,0"/>
                    <TextBlock Width="125" VerticalAlignment="Center" FontWeight="bold" FontSize="14"  Text="{Binding Path=CI,StringFormat='CI: {0}'}" Margin="0,0,8,0" />
                    <TextBlock Width="245" VerticalAlignment="Center" FontWeight="bold" FontSize="14"  Text="{Binding Path=Rank,StringFormat='Rango: {0}'}" />
                </StackPanel>
            </Border>
        </DataTemplate>
    </UserControl.Resources>
    <Grid Height="1310" Width="900">
        <my:MaskTextBox Watermark="Máximo 700 caracteres, mínimo 50!" DataType="RegEx" MaxLength="700" Height="200" HorizontalAlignment="Left" Margin="30,98,0,0" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" AcceptsReturn="True" IsUndoEnabled="True" Name="tbIncidentDetail" RegEx="^[A-Za-z0-9'.,#°?¿()áéíóúAÉÍÓÚÑñ\s]+$" VerticalAlignment="Top" Width="825" IsReadOnly="True" />
        <Label Content="Detalle del Hecho:" FontSize="16" FontWeight="Normal" Height="25" HorizontalAlignment="Left" Margin="30,72,0,0" Name="label4" VerticalAlignment="Top" />
        <GroupBox Header="Evidencias" Height="321" HorizontalAlignment="Left" Margin="30,329,0,0" Name="groupBox1" VerticalAlignment="Top" Width="825">
            <Grid>
                <Label Content="Evidencias recojidas en el lugar de los hechos o recibidas:" Height="24" HorizontalAlignment="Left" Margin="30,22,0,0" Name="label1" VerticalAlignment="Top" />
                <ListBox ItemTemplate="{StaticResource EvidenceItemsTemplate}" ItemsSource="{Binding}" Height="196" HorizontalAlignment="Left" Margin="30,43,0,0" Name="listBoxEvidences" VerticalAlignment="Top" Width="750" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Funcionarias que intervinieron en el caso" Height="544" HorizontalAlignment="Left" Margin="30,683,0,0" Name="groupBox2" VerticalAlignment="Top" Width="825">
            <Grid>
                <Label Content="Intervinientes:" Height="28" FontSize="16" FontWeight="Normal" HorizontalAlignment="Left" Margin="30,23,0,0" Name="label6" VerticalAlignment="Top" />
                <ListBox  Height="186" ItemTemplate="{StaticResource FunctionaryItemsTemplate}" ItemsSource="{Binding}" HorizontalAlignment="Left" Margin="30,48,0,0" Name="listBoxIntervinents" VerticalAlignment="Top" Width="750" />
                <StackPanel Margin="0,238,0,6">
                    <Grid Height="28" Margin="30,30,0,0">
                        <Label Content="Recepcionista:" FontSize="16" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="0,0,0,0" Name="label7" VerticalAlignment="Top" />
                    </Grid>
                    <StackPanel Visibility="Collapsed" Name="RecepterInfo" Height="35" Orientation="Horizontal" Margin="0,0,0,0">
                        <Label Content="Nombre:" Height="28" HorizontalAlignment="Left" Margin="30,5,0,0" Name="label10" VerticalAlignment="Top" />
                        <Label Content="" Height="28" HorizontalAlignment="Left" Margin="5,5,0,0" Name="lblRecepterName" VerticalAlignment="Top" FontWeight="Bold" />
                        <Label Content="Ci:" Height="28" HorizontalAlignment="Left" Margin="15,5,0,0" Name="label11" VerticalAlignment="Top" />
                        <Label Content="" Height="28" HorizontalAlignment="Left" Margin="5,5,0,0" Name="lblRecepterCi" VerticalAlignment="Top" FontWeight="Bold" />
                    </StackPanel>
                    <Grid Height="28" Margin="30,14,0,0">
                        <Label Content="Asignada:" FontSize="16" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="0,0,0,0" Name="label8" VerticalAlignment="Top" />
                    </Grid>
                    <StackPanel Visibility="Collapsed" Name="AsignedInfo" Height="35" Orientation="Horizontal" Margin="0,0,0,0">
                        <Label Content="Nombre:" Height="28" HorizontalAlignment="Left" Margin="30,5,0,0" Name="label12" VerticalAlignment="Top" />
                        <Label Content="" Height="28" HorizontalAlignment="Left" Margin="5,5,0,0" Name="lblAsignedName" VerticalAlignment="Top" FontWeight="Bold" />
                        <Label Content="Ci:" Height="28" HorizontalAlignment="Left" Margin="15,5,0,0" Name="label13" VerticalAlignment="Top" />
                        <Label Content="" Height="28" HorizontalAlignment="Left" Margin="5,5,0,0" Name="lblAsignedCi" VerticalAlignment="Top" FontWeight="Bold" />
                    </StackPanel>
                    <Grid Height="28" Margin="30,14,0,0">
                        <Label Content="Jefe de Seguridad:" FontSize="16" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="0,0,0,0" Name="label9" VerticalAlignment="Top" />
                    </Grid>
                    <StackPanel Visibility="Collapsed" Name="SecurityBossInfo" Height="35" Orientation="Horizontal" Margin="0,0,0,0">
                        <Label Content="Nombre:" Height="28" HorizontalAlignment="Left" Margin="30,5,0,0" Name="label14" VerticalAlignment="Top" />
                        <Label Content="" Height="28" HorizontalAlignment="Left" Margin="5,5,0,0" Name="lblSecBossName" VerticalAlignment="Top" FontWeight="Bold" />
                        <Label Content="Ci:" Height="28" HorizontalAlignment="Left" Margin="15,5,0,0" Name="label15" VerticalAlignment="Top" />
                        <Label Content="" Height="28" HorizontalAlignment="Left" Margin="5,5,0,0" Name="lblSecBossCi" VerticalAlignment="Top" FontWeight="Bold" />
                    </StackPanel>
                </StackPanel>
            </Grid>
        </GroupBox>
        <Button Height="40" HorizontalAlignment="Right" Margin="0,10,826,0" Name="Back" VerticalAlignment="Top" Width="64" Click="SaveAndContinue_Click">
            <StackPanel Orientation="Horizontal">
                <Image Height="16" Margin="0,2,0,0" Name="btnImg" Source="Images/Back.gif" VerticalAlignment="Center" />
                <TextBlock Text="ATRAS" VerticalAlignment="Center" />
            </StackPanel>
        </Button>
        <Label Content="Numero de Caso:" FontSize="20" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="90,14,0,0" Name="label28" VerticalAlignment="Top" />
        <Label Content="" FontSize="32" FontWeight="Light" Height="45" HorizontalAlignment="Left" Margin="248,5,0,0" Name="lblCaseNumber" VerticalAlignment="Top" />
        <Label Content="Fecha de Registro:" FontSize="20" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="414,15,0,0" Name="label39" VerticalAlignment="Top" />
        <Label Content="11/11/2011" FontSize="18" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="580,19,0,0" Name="lblRegistrationDate" VerticalAlignment="Top" />
        <Button Height="41" HorizontalAlignment="Left" Margin="709,1233,0,0" Name="btnPrint" ToolTip="Imprimir la denuncia" VerticalAlignment="Top" Width="114" Click="btnPrint_Click">
            <StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Margin="4,0,0,0" Text="IMPRIMIR" VerticalAlignment="Center" />
                    <Image Height="27" Margin="7,0,0,0" Name="prntImg" Source="Images/Print.gif" VerticalAlignment="Center" />
                    <Image Margin="3,0,3,0" Source="Images/DrpDwn.gif" />
                </StackPanel>
                <xctk:DropDownButton Height="0" Margin="-6,0,0,-6" Name="DrpDownPrintOptions" VerticalAlignment="Bottom">
                    <xctk:DropDownButton.DropDownContent>
                        <StackPanel Width="114">
                            <MenuItem Click="PrintPreview_Click" FontSize="12" Header="Vista Preliminar" Name="PrintPreview"/>
                            <MenuItem Click="Print_Click" FontSize="12" Header="Imprimir" Name="Print" />
                        </StackPanel>
                    </xctk:DropDownButton.DropDownContent>
                </xctk:DropDownButton>
            </StackPanel>
        </Button>
    </Grid>
</UserControl>